package ws.gps.coordenadas;

public class WSInfoGPSProxy implements ws.gps.coordenadas.WSInfoGPS {
  private String _endpoint = null;
  private ws.gps.coordenadas.WSInfoGPS wSInfoGPS = null;
  
  public WSInfoGPSProxy() {
    _initWSInfoGPSProxy();
  }
  
  public WSInfoGPSProxy(String endpoint) {
    _endpoint = endpoint;
    _initWSInfoGPSProxy();
  }
  
  private void _initWSInfoGPSProxy() {
    try {
      wSInfoGPS = (new ws.gps.coordenadas.WSInfoGPSServiceLocator()).getWSInfoGPS();
      if (wSInfoGPS != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wSInfoGPS)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wSInfoGPS)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wSInfoGPS != null)
      ((javax.xml.rpc.Stub)wSInfoGPS)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public ws.gps.coordenadas.WSInfoGPS getWSInfoGPS() {
    if (wSInfoGPS == null)
      _initWSInfoGPSProxy();
    return wSInfoGPS;
  }
  
  public java.lang.String obtenerCoordenadasGPS(java.lang.String splaca) throws java.rmi.RemoteException{
    if (wSInfoGPS == null)
      _initWSInfoGPSProxy();
    return wSInfoGPS.obtenerCoordenadasGPS(splaca);
  }
  
  
}